package net.oschina.app.ui.activity.move;

import android.os.Bundle;

import net.oschina.app.R;
import net.oschina.app.base.BaseActivity;
import net.oschina.app.fragment.move.MoveDetailFragment;
import net.oschina.app.util.ToolBarUtil;

import java.io.Serializable;

/**
 * Created by Vashon on 2017/1/16.
 */

public class MoveDetailActivity extends BaseActivity {

    @Override
    public int getLayoutRes() {
        return R.layout.activity_move_detail;
    }

    @Override
    public void initView() {
        ToolBarUtil.setToolBar(this, "动弹详情");
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {
        initViewPager();
    }

    private void initViewPager() {
        Serializable data = getIntent().getSerializableExtra("data");
        Bundle bundle = new Bundle();
        bundle.putSerializable("data",data);
        MoveDetailFragment fragment = new MoveDetailFragment();
        fragment.setArguments(bundle);
        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.container, fragment)
                .commit();
    }
}
